<script setup>
import { useRouter } from "vue-router";
const onClickLeft = () => history.back();
const router = useRouter();
const gohdxq = () => {
  router.push("/hdxq");
};
</script>

<template>
<div class="c-toubu">
      <van-icon @click="onClickLeft" name="arrow-left" />
      <span class="xuanke">我的活动</span>
    </div>我的活动
  <div class="box">
    <van-card
      @click="gohdxq"
      title="万圣节主题亲子活动，一起来捣蛋吧！"
      thumb="https://img.yzcdn.cn/vant/ipad.jpeg"
    >
      <template #footer>
        <van-tag plain type="danger">活动报名中</van-tag>
      </template>
    </van-card>
    <van-card
      @click="gohdxq"
      title="“我与未来教育的故事”故事征集活动"
      thumb="https://img.yzcdn.cn/vant/ipad.jpeg"
    >
      <template #footer>
        <van-tag plain type="primary">活动进行中</van-tag>
      </template>
    </van-card>
    <van-card
      @click="gohdxq"
      title="特别开展“温暖中秋”亲子活动"
      thumb="https://img.yzcdn.cn/vant/ipad.jpeg"
    >
      <template #footer>
        <van-tag plain type="primary">活动进行中</van-tag>
      </template>
    </van-card>
    <van-card
      @click="gohdxq"
      title="万圣节主题亲子活动，一起来捣蛋吧！"
      thumb="https://img.yzcdn.cn/vant/ipad.jpeg"
    >
      <template #footer>
        <van-tag plain>活动已结束</van-tag>
      </template>
    </van-card>
    <van-card
      @click="gohdxq"
      title="万圣节主题亲子活动，一起来捣蛋吧！"
      thumb="https://img.yzcdn.cn/vant/ipad.jpeg"
    >
      <template #footer>
        <van-tag plain>活动已结束</van-tag>
      </template>
    </van-card>
    <van-card
      @click="gohdxq"
      title="万圣节主题亲子活动，一起来捣蛋吧！"
      thumb="https://img.yzcdn.cn/vant/ipad.jpeg"
    >
      <template #footer>
        <van-tag plain>活动已结束</van-tag>
      </template>
    </van-card>
    <van-card
      @click="gohdxq"
      title="万圣节主题亲子活动，一起来捣蛋吧！"
      thumb="https://img.yzcdn.cn/vant/ipad.jpeg"
    >
      <template #footer>
        <van-tag plain>活动已结束</van-tag>
      </template>
    </van-card>
    <van-card
      @click="gohdxq"
      title="万圣节主题亲子活动，一起来捣蛋吧！"
      thumb="https://img.yzcdn.cn/vant/ipad.jpeg"
    >
      <template #footer>
        <van-tag plain>活动已结束</van-tag>
      </template>
    </van-card>
  </div>
</template>



<style scoped>
.c-toubu {
  width: 100%;
  height: 50px;
  font-size: 18px;
  font-weight: 600;
  line-height: 50px;
  border-bottom: 1px solid #999999;
  position: fixed;
  top: 0;
  background-color: #fff;
  z-index: 999;
}

.xuanke {
  margin-left: 10px;
}
.box{
  padding-top: 50px;
}
.van-cell {
  font-size: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #000;
}
</style>